]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
style: Restore drawing the slight border on panel in light theme
authorSam Hewitt <snwh@gnome.org>
Thu, 26 Jun 2025 13:37:08 +0000 (11:07 -0230)
committerSam Hewitt <snwh@gnome.org>
Thu, 26 Jun 2025 13:37:08 +0000 (11:07 -0230)
Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/8481
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3776>

data/theme/gnome-shell-sass/_colors.scss
data/theme/gnome-shell-sass/widgets/_panel.scss

index b3a52b6f6b3e7952f6d1564ea6fc28c10085c926..f3fc06be15d3b081a2c1723a18dfcb1f1060b708 100644 (file)
@@ -23,6 +23,7 @@ $system_fg_color: $_base_color_light;
 // panel colors
 $panel_bg_color: if($variant == 'light', $_base_color_light, $dark_5);
 $panel_fg_color: if($variant == 'light', $_base_color_dark, $light_1);
+$panel_border_color: if($variant == 'light', transparentize($_base_color_dark, .9), transparent);
 
 // card elements
 $card_bg_color: if($variant == 'light', $light_1, lighten($bg_color, 7%));
index 2a29eee9dad9706ed90b885672d3a6ab6afd268e..4c74d717eeb959b040f075a8914ff002ed73fd2d 100644 (file)
@@ -17,6 +17,11 @@ $panel_transition_duration: 250ms; // same as the overview transition duration
   @extend %numeric;
   transition-duration: $panel_transition_duration;
 
+  @if $variant == 'light' {
+    // uses half a pixel to compensate for box-shadow weirdness
+    box-shadow: inset 0 -0.5px 0 0 $panel_border_color;
+  }
+
   // panel menus
   .panel-button {
     @include panel_button();